﻿using EntityFramework.Entity.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YouTravel.DomainModels
{
    /// <summary>
    /// 菜单信息
    /// </summary>
    public class Menu : EntityBase
    {
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 菜单编号(000000)
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 菜单地址
        /// </summary>
        public string Url { get; set; }
        /// <summary>
        /// 菜单状态
        /// true-正常 false-关闭
        /// </summary>
        public bool Status { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }
        /// <summary>
        /// 帐号菜单
        /// </summary>
        public int UserMenu { get; set; }
        /// <summary>
        /// 上级菜单编号
        /// </summary>
        public int? UpMenuId { get; set; }
        /// <summary>
        /// 上级菜单
        /// </summary>
        public virtual Menu ParentMenu { get; set; }
        /// <summary>
        /// 用户列表
        /// </summary>
        public virtual ICollection<User> Users { get; set; }
    }
}
